@PACKAGE_INIT@

# 导入 AuthTargets 文件
include("${CMAKE_CURRENT_LIST_DIR}/AuthTargets.cmake")

# 如果定义了 COMPONENTS 选项，则导出相应的信息
if(DEFINED COMPONENTS)
    foreach(comp ${COMPONENTS})
        if(comp STREQUAL "Auth")
            set(Auth_FOUND TRUE)
            set(Auth_INCLUDE_DIRS "${CMAKE_INSTALL_PREFIX}/include/ddm")
            set(Auth_LIBRARIES Auth)
        else()
            message(FATAL_ERROR "Unknown component: ${comp}")
        endif()
    endforeach()
endif()

# 如果没有定义 COMPONENTS 选项，则默认导出所有信息
if(NOT DEFINED COMPONENTS OR "${COMPONENTS}" STREQUAL "Auth")
    set(Auth_FOUND TRUE)
    set(Auth_INCLUDE_DIRS "${CMAKE_INSTALL_PREFIX}/include/ddm")
    set(Auth_LIBRARIES Auth)
endif()

# 检查是否找到了相应的组件
if(NOT Auth_FOUND)
    message(FATAL_ERROR "Auth component not found.")
endif()

# 导出 Auth 的头文件路径和库文件
set(Auth_INCLUDE_DIRS ${Auth_INCLUDE_DIRS} ${Auth_INCLUDE_DIRS} PARENT_SCOPE)
set(Auth_LIBRARIES ${Auth_LIBRARIES} ${Auth_LIBRARIES} PARENT_SCOPE)

